package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Activitytype implements Serializable {
    private String atno;

    private String atname;

    private String atstate;

    private String atdescribe;

    private Date atbegtime;

    private Date atendtime;

    private String ataddr;

    private Date atbegindate;

    private Date atenddate;

    private static final long serialVersionUID = 1L;

    public String getAtno() {
        return atno;
    }

    public void setAtno(String atno) {
        this.atno = atno;
    }

    public String getAtname() {
        return atname;
    }

    public void setAtname(String atname) {
        this.atname = atname;
    }

    public String getAtstate() {
        return atstate;
    }

    public void setAtstate(String atstate) {
        this.atstate = atstate;
    }

    public String getAtdescribe() {
        return atdescribe;
    }

    public void setAtdescribe(String atdescribe) {
        this.atdescribe = atdescribe;
    }

    public Date getAtbegtime() {
        return atbegtime;
    }

    public void setAtbegtime(Date atbegtime) {
        this.atbegtime = atbegtime;
    }

    public Date getAtendtime() {
        return atendtime;
    }

    public void setAtendtime(Date atendtime) {
        this.atendtime = atendtime;
    }

    public String getAtaddr() {
        return ataddr;
    }

    public void setAtaddr(String ataddr) {
        this.ataddr = ataddr;
    }

    public Date getAtbegindate() {
        return atbegindate;
    }

    public void setAtbegindate(Date atbegindate) {
        this.atbegindate = atbegindate;
    }

    public Date getAtenddate() {
        return atenddate;
    }

    public void setAtenddate(Date atenddate) {
        this.atenddate = atenddate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activitytype other = (Activitytype) that;
        return (this.getAtno() == null ? other.getAtno() == null : this.getAtno().equals(other.getAtno()))
            && (this.getAtname() == null ? other.getAtname() == null : this.getAtname().equals(other.getAtname()))
            && (this.getAtstate() == null ? other.getAtstate() == null : this.getAtstate().equals(other.getAtstate()))
            && (this.getAtdescribe() == null ? other.getAtdescribe() == null : this.getAtdescribe().equals(other.getAtdescribe()))
            && (this.getAtbegtime() == null ? other.getAtbegtime() == null : this.getAtbegtime().equals(other.getAtbegtime()))
            && (this.getAtendtime() == null ? other.getAtendtime() == null : this.getAtendtime().equals(other.getAtendtime()))
            && (this.getAtaddr() == null ? other.getAtaddr() == null : this.getAtaddr().equals(other.getAtaddr()))
            && (this.getAtbegindate() == null ? other.getAtbegindate() == null : this.getAtbegindate().equals(other.getAtbegindate()))
            && (this.getAtenddate() == null ? other.getAtenddate() == null : this.getAtenddate().equals(other.getAtenddate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAtno() == null) ? 0 : getAtno().hashCode());
        result = prime * result + ((getAtname() == null) ? 0 : getAtname().hashCode());
        result = prime * result + ((getAtstate() == null) ? 0 : getAtstate().hashCode());
        result = prime * result + ((getAtdescribe() == null) ? 0 : getAtdescribe().hashCode());
        result = prime * result + ((getAtbegtime() == null) ? 0 : getAtbegtime().hashCode());
        result = prime * result + ((getAtendtime() == null) ? 0 : getAtendtime().hashCode());
        result = prime * result + ((getAtaddr() == null) ? 0 : getAtaddr().hashCode());
        result = prime * result + ((getAtbegindate() == null) ? 0 : getAtbegindate().hashCode());
        result = prime * result + ((getAtenddate() == null) ? 0 : getAtenddate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", atno=").append(atno);
        sb.append(", atname=").append(atname);
        sb.append(", atstate=").append(atstate);
        sb.append(", atdescribe=").append(atdescribe);
        sb.append(", atbegtime=").append(atbegtime);
        sb.append(", atendtime=").append(atendtime);
        sb.append(", ataddr=").append(ataddr);
        sb.append(", atbegindate=").append(atbegindate);
        sb.append(", atenddate=").append(atenddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}